#include <stdio.h>

int main(int argc, char *argv[]) {

    int size;
    scanf("%d", &size);
    int nums[size];

    for (size_t i = 0; i < size; i++)
    {
        scanf("%d", &nums[i]);
    }
    //冒泡排序
    for (size_t i = 0; i < size; i++)
    {
        for (size_t z = i+1; z < size; z++)
        {
            int temp = nums[i];

            if(nums[i]>nums[z]){
                nums[i] = nums[z];
                nums[z] = temp;
            }
        }
        
    }

    for (size_t i = 0; i < size; i++)
    {
        printf("%d ", nums[i]);
    }
    
     
    

    return 0;
}